import instance from "./axios";

const pmsCouponPage=(data)=>{
    return instance.request({
        url:'mall/pms-product-category/page',
        method:'post',
        data
    })
}
const pmsCouponDelId=(id)=>{
    return instance.request({
        url:`/mall/pms-product-category/del/${id}`
    })
}
const pmsCouponAdd=(data)=>{
    return instance.request({
        url:'mall/pms-product-category/add',
        method:'post',
        data
    })
}
const pmsCouponEdit=(data)=>{
    return instance.request({
        url:'mall/pms-product-category/edit',
        method:'post',
        data
    })
}

const pmsCouponOne = (id) => {
    return instance.request({
        url:`mall/pms-product-category/one/${id}`,
        method:'get'
    })
}

export {
    pmsCouponPage,
    pmsCouponDelId,
    pmsCouponAdd,
    pmsCouponEdit,
    pmsCouponOne
}